use bevy::app::{Plugin, Startup, Update};

use self::ui::*;

pub mod ui;

pub struct UiPlugins;

impl Plugin for UiPlugins {
    fn build(&self, app: &mut bevy::prelude::App) {
        app.add_systems(Startup, (spawn_scoreboard_ui, spawn_level_ui));
        app.add_systems(Update, (update_scoreboard, update_player_bar));
    }
}
